home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  1.7 KB  |  90 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Scrap.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Scrap;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __SCRAP__}
  27. {$SETC __SCRAP__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ScrapIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$PUSH}
  40. {$ALIGN MAC68K}
  41. {$LibExport+}
  42.  
  43. TYPE
  44.     ScrapStuff = RECORD
  45.         scrapSize:                LONGINT;
  46.         scrapHandle:            Handle;
  47.         scrapCount:                INTEGER;
  48.         scrapState:                INTEGER;
  49.         scrapName:                StringPtr;
  50.     END;
  51.     PScrapStuff = ^ScrapStuff;
  52.     ScrapStuffPtr = ^ScrapStuff;
  53.  
  54.  
  55. FUNCTION InfoScrap: ScrapStuffPtr;
  56.     {$IFC NOT GENERATINGCFM}
  57.     INLINE $A9F9;
  58.     {$ENDC}
  59. FUNCTION UnloadScrap: LONGINT;
  60.     {$IFC NOT GENERATINGCFM}
  61.     INLINE $A9FA;
  62.     {$ENDC}
  63. FUNCTION LoadScrap: LONGINT;
  64.     {$IFC NOT GENERATINGCFM}
  65.     INLINE $A9FB;
  66.     {$ENDC}
  67. FUNCTION GetScrap(hDest: Handle; theType: ResType; VAR offset: LONGINT): LONGINT;
  68.     {$IFC NOT GENERATINGCFM}
  69.     INLINE $A9FD;
  70.     {$ENDC}
  71. FUNCTION ZeroScrap: LONGINT;
  72.     {$IFC NOT GENERATINGCFM}
  73.     INLINE $A9FC;
  74.     {$ENDC}
  75. FUNCTION PutScrap(length: LONGINT; theType: ResType; source: UNIV Ptr): LONGINT;
  76.     {$IFC NOT GENERATINGCFM}
  77.     INLINE $A9FE;
  78.     {$ENDC}
  79.  
  80. {$ALIGN RESET}
  81. {$POP}
  82.  
  83. {$SETC UsingIncludes := ScrapIncludes}
  84.  
  85. {$ENDC} {__SCRAP__}
  86.  
  87. {$IFC NOT UsingIncludes}
  88.  END.
  89. {$ENDC}
  90.